

#ifndef MAIN_H
#define MAIN_H


#include <X11/Xlib.h>
#include <X11/Xutil.h>


#include "Ellipse.h"
#include "Line.h"
#include "Polyline.h"
#include "Polygon.h"
#include "Arc.h"

#include "Rectangle.h"
#include "MyDisplay.h"
//#include "Color.h"

#endif
#include<stdlib.h>

int main(){

  MyDisplay show;
  
  Polyline hills("hills.txt",show);  
  
  Polygon house("house.txt",show);
  
  Polyline door("door.txt",show);
  
  Rectangle window("window.txt",show);
  
  Arc sun("sun.txt",show);
  
  Arc river("river.txt",show);
  
  Line connectHouse(show);
  
  hills.draw();
  house.draw();
  door.draw();
  
  window.draw();
  
  
  connectHouse.drawLine(150,70,300,70);
  connectHouse.drawLine(150,70,100,120);
  connectHouse.drawLine(150,70,50,70);
  connectHouse.drawLine(150,70,150,-70);
  
  
  connectHouse.drawLine(-60,230,-80,250);
  connectHouse.drawLine(-40,250,-60,300);
  
  
  
  //connectHouse.drawLine(50,210,30,240);
  
  
  sun.draw();
  
  
  river.draw();
  river.draw("otherSideOfRiver.txt");
  
   
  //XDrawArc(show.display,show.win,show.gc,512, 368 - 120, 30, 30, -30,180);

  //XDrawArc(display, win, gc, 50-(30/2), 100-(30/2), 30, 30, 0, 360*64);
    sleep(10);
  
  return 1;    

}


